cmake_minimum_required(VERSION 3.0)
project(funcGraph)

# set compile options
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(COMMON_FLAGS "-O2 -Wall -Werror -g ")
set(CMAKE_C "${COMMON_FLAGS}")
set(CMAKE_CXX_FLAGS "-std=c++11 ${COMMON_FLAGS}")

set (CMAKE_INCLUDE_CURRENT_DIR ON)

# Enables testing for this directory and below.
enable_testing()

add_subdirectory(test)
add_subdirectory(src)
add_subdirectory(unittest)

# install
install(TARGETS funcGraph DESTINATION bin)
install(DIRECTORY include DESTINATION .)